<title>旺进财</title>
#@homejs()
#@userrealname()
#@userchangemobile()
#@userchangemail()
#@userchangeanswer()
#@recharge()
#@withdraw()
#@openaccount() 
#@changepassword()
#@changebankcard()
<body  bgcolor="#fafafa" style="margin:0px;">   
	#@homemenu("account")
	<div align="center" style="width:100%;">
		<div style="width:1100px;margin-top:20px;min-height:800px;">
			<div id="accountl" style="float:left;width:200px;background:#FFF;height:650px;border-top:3px solid #fd4255">
				<div style="padding:20px;">
					<div onclick="window.location.href='account-account'" style="cursor:pointer;font-size:20px;font-weight:400">
						<img style="height:20px;margin-right:10px;margin-top:-5px;" src="#(path)/assets/home/account/account_img1.png"> 
						<span>我的账户</span> 
					</div>
					<div accountinfo = "userinvest" class="account account_menu" > 
						<span>已投项目</span>
					</div>
					<div accountinfo = "investinfo" class="account account_menu" >
						<span>交易明细</span>
					</div>
					<div accountinfo = "usereward" class="account account_menu" >
						<span>我的奖励</span>
					</div>
					<div class="account" accountinfo = "userfriend" style="cursor:pointer;border-top:1px dashed #e0e0e0;margin-top:20px;padding-top:20px;font-size:20px;font-weight:400">
						<img style="height:20px;margin-right:10px;margin-top:-5px;" src="#(path)/assets/home/account/account_img2.png"> 
						<span >查看好友</span> 
					</div>
					<div class="account " accountinfo = "setaccount" style="cursor:pointer;border-top:1px dashed #e0e0e0;margin-top:20px;padding-top:20px;font-size:20px;font-weight:400">
						<img style="height:20px;margin-right:10px;margin-top:-5px;" src="#(path)/assets/home/account/account_img2.png"> 
						<span >账户设置</span>
					</div>
					<div style="cursor:pointer;border-top:1px dashed #e0e0e0;margin-top:20px;padding-top:20px;font-size:20px;font-weight:400">
						<img style="height:20px;margin-right:10px;margin-top:-5px;" src="#(path)/assets/home/account/account_img4.png"> 
						<span>我的消息</span>
					</div>
					<div accountinfo = "useractive" class="account account_menu" >
						<span>活动精选</span>
					</div>
					<div accountinfo = "usernotice" class="account account_menu" > 
						<span>通知消息</span>
					</div>
					<div accountinfo = "usernews" class="account account_menu" >
						<span>新闻公告</span>
					</div>
					<div accountinfo = "userasset" class="account account_menu" >
						<span>资产动态</span>
					</div>
					<div id="outsign" style="margin-left:20px;cursor:pointer;border-top:1px dashed #e0e0e0;margin-top:20px;padding-top:20px;font-size:20px;font-weight:400">
						<span>退出登录</span>
					</div>
				</div>
			
			</div>
			<div id="accountr" style="float:left;width:880px;margin-left:20px;min-height:600px;"> 
			</div>
			
		</div>
	</div>
	<!--foot-->
	#@homefoot1()
	#@homefoot2() 
	<!--弹窗-->

<script> 
$(document).ready(function(){
	var openkey = GetRequest().type; 
	if($.isBlank(openkey)){
		$("#accountr").load("/account-useraccount");
	}else{
		$("#accountr").load("/account-"+openkey);
	}
	$(".account").click(function(){
		$("#accountr").empty();
		$(".account").removeClass("account_menu2"); 
		$(this).addClass("account_menu2");
		day = $(this).attr("accountinfo");
		var href = "/account-"+day;
		$("#accountr").load(href);
	});
	$("#outsign").click(function(){
		$.getJSON("#(path)/user/logout?token=#(session.token??)", function(datainfo) {
			if(datainfo.code=='success'){
				layer.msg(datainfo.msg,{icon:1,time:2000},function(){
					window.location.href="#(path)/user-login"; 
				});
			}else{
				layer.msg(datainfo.msg,{icon:2,time:1000}); 
			}
		});
	});
	
	
	
	
	$("#next").click(function(){
		var code = $("#code").val();
		var mobile = $("#mobile").html();
		//var question = $("#question").val(); 
		//var answer = $("#answer").val(); 
		$.getJSON("#(path)/user/modifyMobile?token=#(session.token??)&type=check&sms="+code+"&mobile="+mobile+"&question="+question+"&answer="+answer, function(datainfo) {
			if(datainfo.code=='success'){
				layer.msg(datainfo.msg,{icon:1,time:2000},function(){
					window.location.href="#(path)/app/page/user-newmobile?type="+type+"&mobile1="+mobile+"&sms1="+code; 
				});
			}else{
				layer.msg(datainfo.msg,{icon:2,time:1000}); 
			}
		});
	}); 
	function GetRequest() {  
	   var url = location.search;   
	   var theRequest = new Object();  
	   if (url.indexOf("?") != -1) {  
		  var str = url.substr(1);  
		  strs = str.split("&");  
		  for(var i = 0; i < strs.length; i ++) {  
			 theRequest[strs[i].split("=")[0]]=unescape(strs[i].split("=")[1]);  
		  }  
	   }  
	   return theRequest;  
	}  
	
	
});
</script>

</body>